package mythread;

/**
 * @Author yuxiang
 * @Date 2020-11-24 15:08
 */
public class MyThread01 {
    public static void main(String[] args) {
        new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println("t1:" + i);
            }
        }).start();

        new Thread(() -> {
            for (int i = 0; i < 100; i++) {
                System.out.println("t2:" + i);
            }
        }).start();
    }
}
